package com.ruoyi.dm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class TablePartitionParam {
    @ApiModelProperty(value = "分区字段名", name = "partitionName")
    private String partitionName;
    @ApiModelProperty(value = "分区间隔", name = "interval")
    private Integer interval;
    @ApiModelProperty(value = "分区间隔类型（YEAR,MONTH,DAY）", name = "type")
    private String type;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最小时间", name = "minTime")
    private Date minTime;

}
